package cn.zxf.note.note.type;

import cn.zxf.note.common.jpa.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import jakarta.persistence.Entity;
import jakarta.persistence.Table;

/**
 * 存在逻辑删除，不能有唯一约束
 * <p>
 * Created by zengxf on 2019/3/21.
 */
@Entity
@Table(name = "note_type")
@DynamicInsert
@DynamicUpdate
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class NoteType extends AbstractEntity {

    private Integer userId;

    private String name;
    /*** 状态 {@link NoteTypeStatusEnum} */
    private Integer status;

}
